<form id='{$form.name}' name='{$form.name}'>
<link rel="stylesheet" href="{$js_url}/uploadify/uploadify.css" type="text/css" />
<div style="padding-left:25px;padding-right:25px; padding-top:26px;">
	<table ><tr><td>
		{if $form.icon !='' }
		<div class="form_icon" style="float:left;padding-right:15px;"><img  src="{$form.icon}" border="0" /></div>
		{/if}
		<div style="float:left; width:330px;">
		<h2>
		{$form.title}
		</h2> 
		<p class="form_desc" style="padding-top:10px;">{$form.description}</p>
		</div>
	</td></tr></table>
	<br/>
		
	<div class="detail_form_panel_padding" style="padding-left:10px;">
	{foreach item=item key=itemName from=$dataPanel}
		{if $item.type eq 'CKEditor' 
		 or $item.type eq 'RichText' 
		 or $item.type eq 'Textarea'  
		 or $item.type eq 'RawData'
		 or $item.type eq 'attachment.element.AttachmentUploader'
		 }
			<table  id="{$itemName}_container" class="input_row">
			<tr>
			<td style="width:80px;">	
				<label style="text-align:left">{$item.label}</label>
			</td>
			<td>
				{if $errors.$itemName}
				<span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span>
				{elseif $item.description}
				<span class="input_desc" style="width:240px;">{$item.description}</span>			
				{/if}
			</td>
			</tr>
			<tr><td colspan="2" align="left" >
				<span class="label_textarea" style="width:655px;">{$item.element}</span>
							
			</td></tr>
			</table>		
		{else}
			{if $item.type eq 'Hidden' }
			<table  id="{$itemName}_container" class="input_row" style="display:none">
			{else}
			<table  id="{$itemName}_container" class="input_row">
			{/if}					
			<tr>
			<td >			
				<label style="text-align:left;">{$item.label}</label>			
			</td>
			<td>
			{if $item.type eq 'Checkbox' }
				<span class="label_text" >{$item.element} {$item.description}</span>
			{else}
				<span class="label_text" style="{if $item.width}width:{$item.width+15}px;{/if}">{$item.element}</span>
				{if $errors.$itemName}
				<span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span>
				{elseif $item.description}
				<span class="input_desc" style="width:240px;">{$item.description}</span>			
				{/if}				
			{/if}

				
			</td>
			</tr>
			</table>
		{/if}			
		
	{/foreach}
		
		<div style="height:10px;"></div>
		{if $actionPanel|@count > 0}
		<p class="input_row">
			
			{foreach item=elem from=$actionPanel}
				{$elem.element}
			{/foreach}
		</p>
		{/if}
	{if $errors}
	    <div id='errorsDiv' class='innerError errorBox'>
	    {foreach item=errMsg from=$errors}
	        <div>{$errMsg}</div>
	    {/foreach}
	    {literal}<script>setTimeout("$('errorsDiv').fade( {from: 1, to: 0});",3000);</script>{/literal}
	    </div>
	{/if}
	
	{if $notices}
	    <div id='noticeDiv' class='noticeBox' >
	    {foreach item=noticeMsg from=$notices}
	        <div>{$noticeMsg}</div>
	    {/foreach}
	    </div>
	    {literal}<script>setTimeout("$('noticeDiv').fade( {from: 1, to: 0});",3000);</script>{/literal}
	{/if}

	</div>
	
		<div style="height:15px;">
		<div id='{$form.name}.load_disp' style="display:none;">
		<img  src="{$image_url}/form_ajax_loader.gif"/>
		</div>
		</div>
	
</div>
</div>
</form>
<script>Openbiz.Window.centerDialog(470,305); </script>